// default package
package com.ppm.common.model;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * User entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="USERS")

public class User  implements java.io.Serializable {


    // Fields    

     private Long id;
     private String name;
     private BigDecimal sex;
     private BigDecimal age;
     private String username;
     private String passwd;


    // Constructors

    /** default constructor */
    public User() {
    }

    
    /** full constructor */
    public User(String name, BigDecimal sex, BigDecimal age, String username, String passwd) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.username = username;
        this.passwd = passwd;
    }

   
    // Property accessors
    @SequenceGenerator(name="generator")@Id @GeneratedValue(strategy=SEQUENCE, generator="generator")
    
    @Column(name="ID", unique=true, nullable=false, precision=10, scale=0)

    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    @Column(name="NAME")

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="SEX", precision=22, scale=0)

    public BigDecimal getSex() {
        return this.sex;
    }
    
    public void setSex(BigDecimal sex) {
        this.sex = sex;
    }
    
    @Column(name="AGE", precision=22, scale=0)

    public BigDecimal getAge() {
        return this.age;
    }
    
    public void setAge(BigDecimal age) {
        this.age = age;
    }
    
    @Column(name="USERNAME")

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Column(name="PASSWD")

    public String getPasswd() {
        return this.passwd;
    }
    
    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }
   








}